package MyStack;

public class Test {

    public static void main(String[] args) {
        MyStack myStack = new MyStack();

        System.out.println(myStack.isValid("()"));
    }

    public static void main1(String[] args) {
        MyStack myStack = new MyStack();

        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        myStack.push(4);

        myStack.show();

        System.out.println(myStack.pop());
        System.out.println();
        myStack.show();

        System.out.println(myStack.peek());

        myStack.pop();
        myStack.pop();
        myStack.pop();
        //myStack.pop();
        myStack.peek();
    }
}
